﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.domain
{
    public class ResourceBonusSettingMap : ClassMap<ResourceBonusSetting>
    {
        public ResourceBonusSettingMap()
        {
            Id(o => o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);

            Map(o => o.ResourceID);
            Map(o => o.Bonus).Default("0");
            Map(o => o.PurchasedCategory).CustomType<mscook.core.domain.PurchasedCategory>();

        }
    }
}
